<template>
	<view class="container">
		<view class="flex diygw-col-24 flex-direction-column items-center flex-wrap flex-clz">
			<view class="flex diygw-col-4 avatar-clz">
				<view class="diygw-avatar green radius">
					<text class="diy-icon-check"></text>
				</view>
			</view>
			<view class="diygw-col-18 text-clz"> 邀请朋友评论，让企业更全面的了解您和项目，能够更快的获取想要的资源 </view>
			<view class="flex diygw-col-0">
				<button class="diygw-btn grey radius-md diygw-shadow flex1 margin-xs button-button-clz">分享</button>
			</view>
		</view>
		<view class="version text-grey flex-direction-column flex diygw-col-24 justify-center align-center">
			<view> DIY官网提供技术支持 </view>
			<view> http://www.diygw.com </view>
		</view>
		<view class="clearfix"></view>
	</view>
</template>

<script>
	//create by: 邓志锋 <280160522@qq.com> <https://www.diygw.com> DIYGW可视化设计一键生成源码
	export default {
		data() {
			return {
				//用户全局信息
				userInfo: {},
				projectComment: {
					code: '200',
					data: {
						count: 2,
						list: [
							{
								project_id_: '434440356570595329',
								user_id_: '434443664980705281',
								user_name_: '123',
								content_: '太棒啦太棒啦',
								id: '434443085955465217',
								project_name_: '作业帮'
							},
							{
								project_id_: '434559717528043521',
								user_id_: '434443664980705281',
								user_name_: '123',
								content_: '123',
								id: '434443664980967433',
								project_name_: '222'
							}
						]
					},
					isOk: true
				}
			};
		},
		onShow() {
			this.setCurrentPage(this);
		},
		onLoad(option) {
			this.setCurrentPage(this);
			if (option) {
				this.setData({
					globalOption: this.getOption(option)
				});
			}

			this.init();
		},
		methods: {
			async init() {
				await this.projectCommentApi();
			},
			// 项目评论 API请求方法
			async projectCommentApi() {
				let projectComment = await this.$http.post(
					'https://agent.diygw.com/',
					{
						url: '/form/formCustSql/view/liststr_projectComment',
						method: 'post',
						headers: {
							'Content-Type': 'application/x-www-form-urlencoded'
						},
						param: '{"curPage":1,"pageSize":"10","params":"{"timestamp":"1660022286331"}"}'
					},
					{
						'Content-type': 'application/json'
					},
					'json'
				);
				this.projectComment = projectComment;
			}
		}
	};
</script>

<style lang="scss" scoped>
	.flex-clz {
		margin-left: 5px;
		width: calc(100% - 5px - 5px) !important;
		margin-top: 100px;
		margin-bottom: 5px;
		margin-right: 5px;
	}
	.avatar-clz {
		margin-left: 5px;
		flex: 1;
		width: calc(16.6666666667% - 5px - 5px) !important;
		font-size: 20px;
		margin-top: 15px;
		margin-bottom: 5px;
		margin-right: 5px;
	}
	.text-clz {
		margin-left: 10px;
		width: calc(75% - 10px - 5px) !important;
		margin-top: 13px;
		margin-bottom: 5px;
		text-align: center;
		margin-right: 5px;
	}
	.button-button-clz {
		margin: 3px !important;
	}
	.container {
		padding-left: 0px;
		padding-right: 0px;

		font-size: 12px;
	}
	.container {
	}
</style>
